import http from '@/utils/http'

export default {
    getAll: (): Promise<Array<Vm.Classroom>> => http<null, Array<Vm.Classroom>>({ url: "/classroom/all" }),
    remove: (clsr_id: number): Promise<null> => http({ url: "/classroom/remove/" + clsr_id, method: "get" }),
    add:(data:HttpPayload.Classroom):Promise<number> => http<HttpPayload.Classroom,number>({ url: "/classroom/add",method: "post",data}),
    update:(data:HttpPayload.Classroom):Promise<null> => http<HttpPayload.Classroom>({ url: "/classroom/update",method: "post",data})
}